<?php
    class My_Controller extends CI_Controller {
        public $system = array();   //系统全局变量
        public $data = array();

        function __construct() {
            parent::__construct();

            if (ENVIRONMENT == 'development') {
                $this->output->enable_profiler(TRUE);
            }
        }
    }
?>